Skip to content

feat(metrics): add Prometheus-compatible metrics endpoint - #303

Open
Aboyeji-Isaac wants to merge 38 commits into
SwiftChainn:mainfrom
Aboyeji-Isaac:fix/42-login-validation
Open

Aboyeji-Isaac wants to merge 38 commits into
SwiftChainn:mainfrom
Aboyeji-Isaac:fix/42-login-validation

Conversation

@Aboyeji-Isaac

@Aboyeji-Isaac Aboyeji-Isaac commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Implements a Prometheus-compatible metrics endpoint for monitoring SwiftChain Backend.

Changes

  • Add a metrics endpoint that exposes application metrics in Prometheus format.
  • Track HTTP request counts and request-duration histograms.
  • Expose relevant process and infrastructure metrics, including memory usage, uptime, database connection-pool information, Redis health, circuit-breaker states, indexer lag, and Socket.IO metrics.
  • Protect metrics access with authentication and administrator authorization.
  • Add environment configuration for enabling metrics.
  • Include unit tests for the metrics service and request-tracking middleware.
  • Document the available metrics and deployment configuration.

Testing

  • Add unit tests covering metrics collection and HTTP request instrumentation.
  • Run the project's linting, formatting, and test checks before merging.

Closes #248

@Tybravo

Tybravo commented Oct 23, 2026

Copy link
Copy Markdown
Collaborator

@Aboyeji-Isaac

Please complete your tasks so, I can review and merge

Thanks

@Aboyeji-Isaac Aboyeji-Isaac changed the title Made a little harmless changes feat(metrics): add Prometheus-compatible metrics endpoint Oct 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] Add a Prometheus-format operations metrics endpoint

2 participants